<?php $this->lang->load('userauth', $this->session->userdata('ua_language')); ?>

<?php if ($this->userauth->loggedin()): ?>
	<div id="loggedin" class="login">
		<?='<p>'.$this->lang->line('ua_user').': '
			.$this->session->userdata('username').'</p>';?>
		<?='<div id="login_button"><center>'.anchor ('user/logout', 
			'[ '.$this->lang->line('ua_logout').' ]').'</center></div>';?>
		<p>&nbsp;</p>
	</div><!--// End of login //-->
<?php else: ?>
	<div id="login" class="login">
		<form method="post" action="<?=site_url('user/login')?>">
			<label for="username"><?=$this->lang->line('ua_username');?>:</label>
				<center><input type="text" name="username" id="username" /></center>
			<label for="password"><?=$this->lang->line('ua_password');?>:</label>
				<center><input type="password" name="password" id="password" /></center>
			<input type="checkbox" name="remember_me" id="remember_me" value="true" /> 
				<label for="remember_me"><?=$this->lang->line('ua_remember_me');?></label><br/>
			<div id="login_button"><center><input type="submit" id="loginbutton" name="login" 
				value="<?=$this->lang->line('ua_login');?>" /></center></div>
		</form>
	</div><!--// End of login //-->
<?php endif; ?>

